<form name="form1" method="post">
<table>
  <tr>
    <td >Oficina:</td>
    <td ><?=helpers::combo($conn, '', empty($objeto->id_zona) ? $_SESSION['SesionZona'] :$objeto->id_zona ,'','','id_zona','id','nombre','id_zona','',"SELECT * FROM zonas WHERE id = ". $_SESSION['SesionZona'] . " OR id IN (SELECT id FROM zonas WHERE id_padre =" . $_SESSION['SesionZona'] . ") ORDER BY nombre")?></td>
  </tr>

<tr>
	<td>Nombre:</td>
	<td><input name="nombre" value="<?=$objeto->nombre ?>" size="30" type="text">
		<span class="errormsg" id="error_nom">*</span>
		<?=$validator->show("error_nom")?>
	</td>
</tr>
<tr>
	<td>Login:</td>
	<td><input name="login" value="<?=$objeto->login ?>" size="30" type="text">
		<span class="errormsg" id="error_log">*</span>
		<?=$validator->show("error_log")?>
	</td>
	<td>Password:</td>
	<td><input type="password" name="password" value="<?=$objeto->password ?>" size="30" type="text">
		<span class="errormsg" id="error_pass">*</span>
		<?=$validator->show("error_pass")?>
	</td>
</tr>
</table>
<input style="float:right" name="boton" type="button" value="<?=$boton?>" onclick="<?=$validator->validate() ?>" />
<input name="id" type="hidden" value="<?=$objeto->id?>" />
<input name="accion" type="hidden" value="<?=$boton?>" />
<div style="position:absolute; top:4px; right:5px; cursor:pointer;">
<img onclick="close_div();" src="images/close_div.gif" /></div>
</form>
<p class="errormsg">(*) Campo requerido</p>